package com.mqb.config;

import org.springframework.security.web.authentication.WebAuthenticationDetails;

import javax.servlet.http.HttpServletRequest;

/**
 * @author mqb
 * @date 2021/4/2 15:42
 */
public class MyWebAuthenticationDetails extends WebAuthenticationDetails {

    private final Object something;

    public MyWebAuthenticationDetails(HttpServletRequest request) {
        super(request);
        something =  request.getMethod();
    }

    public Object getSomething() {
        return something;
    }
}
